#pragma once

#include "Logging.h"

#define CHECK(x,comment) if (!(x))\
	{\
		Log::Get().Err("%s: %s, file: %s, line: %d", #x, comment, __FILE__, __LINE__);\
		return;\
	}
#define CHECKNULL(x,comment) if (!(x))\
	{\
		Log::Get().Err("%s: %s, file: %s, line: %d", #x, comment, __FILE__, __LINE__);\
		return nullptr;\
	}
#define CHECKFALSE(x,comment) if (!(x))\
	{\
		Log::Get().Err("%s: %s, file: %s, line: %d", #x, comment, __FILE__, __LINE__);\
		return false;\
	}